home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / eiffel / smalleif.97 / se.t / SmallEiffel / misc / INSTALL.CSH < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  1996-05-02  |  1.2 KB  |  43 lines

  1. #!/bin/csh
  2. #-- Part of SmallEiffel -- Read DISCLAIMER file -- Copyright (C) 
  3. #-- Dominique COLNET and Suzanne COLLIN -- colnet@loria.fr
  4. #--
  5. #
  6. # To INSTALL SmallEiffel on UNIX like platforms (including LINUX).
  7. #
  8. # If you have the gcc compiler, set the environment variable
  9. # "SmallEiffel" to the appropriate value and simply
  10. # run this INSTALL file (That's all if you have gcc :-).
  11. #
  12. # If you don't have gcc, you must procede manually doing the
  13. # following :
  14. #  - edit and run each SmallEiffel/bin_c/*.make file. Each call
  15. #    to gcc must be changed by a call to your favorite C compiler.
  16. #  - move each executable file in the SmallEiffel/bin directory.
  17. #
  18. # That's all. Good luck :-)
  19. #
  20. # Here the script to run if you have gcc :
  21. if (!($?SmallEiffel)) then
  22.     echo "Environment Variable 'SmallEiffel' not set."
  23.     exit 1
  24. endif
  25. if (! -d $SmallEiffel) then
  26.     echo ${SmallEiffel} "not found."
  27.     exit 1
  28. endif
  29. cd ${SmallEiffel}/bin_c
  30. foreach fmake (*.make)
  31.     set cmd=$fmake:r
  32.     echo Running ${fmake}
  33.     set verbose=1
  34.     source ${fmake}
  35.     mv -f ../bin/${cmd} ../bin/${cmd}.old > /dev/null
  36.     mv -f ${cmd} ../bin/${cmd}
  37.     /bin/rm -f ../bin/${cmd}.old
  38.     unset verbose
  39. end
  40. /bin/rm -f *.o
  41. echo "UNIX" >! ${SmallEiffel}/bin/system.se
  42. echo Done.
  43.